package org.example.entity;

import java.util.Date;

public class Soft {
    private int soft_id;
    private String soft_name;
    private int dept_id;
    private int use_id;  // 建议改为user_id更符合语义
    private Date hire_date;

    // 构造方法
    public Soft() {}

    public Soft(int soft_id, String soft_name, int dept_id, int use_id, Date hire_date) {
        this.soft_id = soft_id;
        this.soft_name = soft_name;
        this.dept_id = dept_id;
        this.use_id = use_id;
        this.hire_date = hire_date;
    }

    // Getters and Setters
    public int getSoft_id() { return soft_id; }
    public void setSoft_id(int soft_id) { this.soft_id = soft_id; }

    public String getSoft_name() { return soft_name; }
    public void setSoft_name(String soft_name) { this.soft_name = soft_name; }

    public int getDept_id() { return dept_id; }
    public void setDept_id(int dept_id) { this.dept_id = dept_id; }

    public int getUse_id() { return use_id; }
    public void setUse_id(int use_id) { this.use_id = use_id; }

    public Date getHire_date() { return hire_date; }
    public void setHire_date(Date hire_date) { this.hire_date = hire_date; }

    @Override
    public String toString() {
        return "Soft{" +
                "soft_id=" + soft_id +
                ", soft_name='" + soft_name + '\'' +
                ", dept_id=" + dept_id +
                ", use_id=" + use_id +
                ", hire_date=" + hire_date +
                '}';
    }
}